home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / hardware / custom.inc < prev    next >
Text File  |  1998-06-24  |  3KB  |  150 lines

  1. include "inc/exec/types.inc";
  2.  
  3. struct Custom is
  4.   bltddat:uword;
  5.   dmaconr:uword;
  6.   vposr:uword;
  7.   vhposr:uword;
  8.   dskdatr:uword;
  9.   joy0dat:uword;
  10.   joy1dat:uword;
  11.   clxdat:uword;
  12.   adkconr:uword;
  13.   pot0dat:uword;
  14.   pot1dat:uword;
  15.   potinp:uword;
  16.   serdatr:uword;
  17.   dskbytr:uword;
  18.   intenar:uword;
  19.   intreqr:uword;
  20.   dskpt:ulong;
  21.   dsklen:uword;
  22.   dskdat:uword;
  23.   refptr:uword;
  24.   vposw:uword;
  25.   vhposw:uword;
  26.   copcon:uword;
  27.   serdat:uword;
  28.   serper:uword;
  29.   potgo:uword;
  30.   joytest:uword;
  31.   strequ:uword;
  32.   strvbl:uword;
  33.   strhor:uword;
  34.   strlong:uword;
  35.   bltcon0:uword;
  36.   bltcon1:uword;
  37.   bltafwm:uword;
  38.   bltalwm:uword;
  39.   bltcpt:ulong;
  40.   bltbpt:ulong;
  41.   bltapt:ulong;
  42.   bltdpt:ulong;
  43.   bltsize:uword;
  44.   pad2d:ubyte;
  45.   bltcon0l:ubyte;
  46.   bltsizv:uword;
  47.   bltsizh:uword;
  48.   bltcmod:uword;
  49.   bltbmod:uword;
  50.   bltamod:uword;
  51.   bltdmod:uword;
  52.   pad34[4]:uword;
  53.   bltcdat:uword;
  54.   bltbdat:uword;
  55.   bltadat:uword;
  56.   pad3b[3]:uword;
  57.   deniseid:uword;
  58.   dsksync:uword;
  59.   cop1lc:ulong;
  60.   cop2lc:ulong;
  61.   copjmp1:uword;
  62.   copjmp2:uword;
  63.   copins:uword;
  64.   diwstrt:uword;
  65.   diwstop:uword;
  66.   ddfstrt:uword;
  67.   ddfstop:uword;
  68.   dmacon:uword;
  69.   clxcon:uword;
  70.   intena:uword;
  71.   intreq:uword;
  72.   adkcon:uword;
  73.   aud[4]:struct AudChannel is
  74.     ac_ptr:ulong;
  75.     ac_len:uword;
  76.     ac_per:uword;
  77.     ac_vol:uword;
  78.     ac_dat:uword;
  79.     ac_pad[2]:uword;
  80.   ;
  81.   bplpt[8]:ulong;
  82.   bplcon0:uword;
  83.   bplcon1:uword;
  84.   bplcon2:uword;
  85.   bplcon3:uword;
  86.   bpl1mod:uword;
  87.   bpl2mod:uword;
  88.   bplcon4:uword;
  89.   clxcon2:uword;
  90.   bpldat[8]:uword;
  91.   sprpt[8]:ulong;
  92.   spr[8]:struct SpriteDef is
  93.     pos:uword;
  94.     ctl:uword;
  95.     dataa:uword;
  96.     datab:uword;
  97.   ;
  98.   color[32]:uword;
  99.   htotal:uword;
  100.   hsstop:uword;
  101.   hbstrt:uword;
  102.   hbstop:uword;
  103.   vtotal:uword;
  104.   vsstop:uword;
  105.   vbstrt:uword;
  106.   vbstop:uword;
  107.   sprhstrt:uword;
  108.   sprhstop:uword;
  109.   bplhstrt:uword;
  110.   bplhstop:uword;
  111.   hhposw:uword;
  112.   hhposr:uword;
  113.   beamcon0:uword;
  114.   hsstrt:uword;
  115.   vsstrt:uword;
  116.   hcenter:uword;
  117.   diwhigh:uword;
  118.   padf3[11]:uword;
  119.   fmode:uword;
  120. ;
  121.  
  122. def VARVBLANK = $1000;
  123. def LOLDIS = $0800;
  124. def CSCBLANKEN = $0400;
  125. def VARVSYNC = $0200;
  126. def VARHSYNC = $0100;
  127. def VARBEAM = $0080;
  128. def DISPLAYDUAL = $0040;
  129. def DISPLAYPAL = $0020;
  130. def VARCSYNC = $0010;
  131. def CSBLANK = $0008;
  132. def CSYNCTRUE = $0004;
  133. def VSYNCTRUE = $0002;
  134. def HSYNCTRUE = $0001;
  135.  
  136. def USE_BPLCON3 = 1;
  137.  
  138. def BPLCON2_ZDCTEN = (1<<10);
  139. def BPLCON2_ZDBPEN = (1<<11);
  140. def BPLCON2_ZDBPSEL0 = (1<<12);
  141. def BPLCON2_ZDBPSEL1 = (1<<13);
  142. def BPLCON2_ZDBPSEL2 = (1<<14);
  143.  
  144. def BPLCON3_EXTBLNKEN = (1<<0);
  145. def BPLCON3_EXTBLKZD = (1<<1);
  146. def BPLCON3_ZDCLKEN = (1<<2);
  147. def BPLCON3_BRDNTRAN = (1<<4);
  148. def BPLCON3_BRDNBLNK = (1<<5);
  149.  
  150.